home *** CD-ROM | disk | FTP | other *** search
-
- #include "includes.h"
- #include "installergui_data.h"
-
- /********************************************************************
- *
- * DESCRIPTION
- *
- */
-
- /********************************************************************
- *
- * STATIC
- *
- */
-
- /********************************************************************
- *
- * EXTERN
- *
- */
-
- /********************************************************************
- *
- * PUBLIC
- *
- */
-
- /********************************************************************
- *
- * CODE
- *
- */
-
- long __asm igui_QuietWaitApp(register __a0 APTR application)
- {
- #ifdef DEBUG
- DEBUG_MAKRO
- #endif
-
- {
- long sigs = 0, event;
- struct Application *app = (struct Application *) application;
-
- // wait for user input
- while (TRUE)
- {
- DoMethod(app->app_Application, MUIM_Application_NewInput, &sigs);
- if (sigs)
- {
- sigs = Wait(sigs | SIGBREAKF_CTRL_C | SIGBREAKF_CTRL_D | SIGBREAKF_CTRL_E);
-
- if (sigs & SIGBREAKF_CTRL_D) { event = GUIEVENT_PROCEED; break; } // proceed button
- if (sigs & SIGBREAKF_CTRL_E) { event = GUIEVENT_ABORT; break; } // cancel button
- if (sigs & SIGBREAKF_CTRL_C) { event = GUIEVENT_QUIT; break; } // quit
- }
- }
-
- // give back the event
- app->app_CurrentGUIEvent = event;
- return(event);
- }
- }